﻿
<!DOCTYPE html>
<html lang="en">
	<head>
		
		<meta charset="utf-8" />
		<title>立修</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<!-- basic styles -->
		<link href="${ctx}static/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="${ctx}static/font-awesome/css/font-awesome.min.css" />
		<link rel="stylesheet" href="${ctx}static/assets/css/font-awesome.min.css" />
		<!--[if IE 7]>
		  <link rel="stylesheet" href="static/assets/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- page specific plugin styles -->

		<!-- fonts -->

		

		<!-- ace styles -->

		<link rel="stylesheet" href="${ctx}static/assets/css/ace.min.css" />
		<link rel="stylesheet" href="${ctx}static/assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="${ctx}static/assets/css/ace-skins.min.css" />
		<link rel="stylesheet" href="${ctx}static/assets/css/amazeui.min.css" />
		<link rel="Stylesheet" type="text/css" href="${ctx}static/assets/css/loginDialog.css" />
		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="static/assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->
		<script type="text/javascript" src="${ctx}static/assets/js/jquery-1.8.3.min.js"></script>
		<script src="${ctx}static/assets/js/ace-extra.min.js"></script>
		<!-- <script type="text/javascript" src="${ctx}static/assets/js/jquery-1.9.0.min.js"></script> -->
		<script type="text/javascript" src="${ctx}static/js/user/user_index.js"></script>
		<script type="text/javascript" src="${ctx}static/assets/js/tablecloth.js"></script>
		<script type="text/javascript" src="${ctx}static/js/user/user_index.js"></script>
		<link href="${ctx}static/assets/css/login2.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}static/assets/css/tablecloth.css" rel="stylesheet" type="text/css" />
		<style type="text/css">
	.str_wrap{
		
	
	font-size:12px;
	line-height:16px;
	position:relative;
	/*nowrap : 文本不会换行，文本会在在同一行上继续，直到遇到 <br> 标签为止。*/
	white-space:nowrap;
	}
	.str4 img { opacity:0.8}
	.str4 img:hover { opacity:1}
	.str4{
		background:#fff;
	}
	.str_move { 
	position:absolute; 
	top:0; 
	/*cursor:move;*/
}
</style>
	</head>

	<body>
		<div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="${ctx}index" class="navbar-brand">
						<small style="font-size:40px;">
							<i><img src="${ctx}static/img/systemLogo.png" style="width:460px;height:80px;"></i>
							
						</small>
					</a><!-- /.brand -->
				</div><!-- /.navbar-header -->

				
				
				<div class="navbar-header pull-right" role="navigation" >
					
					<ul class="nav ace-nav" >
						<li class="light-blue" style="height:100px;width:200px;">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="${ctx}static/assets/images/avatar4.jpg" alt="Jason's Photo" style="height:70px;max-width:70px;margin:13px 5px;"/>
								<span class="user-info" style="line-height:80px;font-size:20px;font-weight:bold;">
									<!-- <div>user</div> -->
									<div>${userInfo.name!}</div>
									<input type="hidden"  value="${userInfo.accountId?c}" id="accountId">
								</span>

								<i class="icon-caret-down"></i>
							</a>

					<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="${ctx}logout">
										<i class="icon-off"></i>
										退出
									</a>
								</li>
							</ul>
						</li>
					</ul> 
				</div><!-- /.navbar-header -->
			</div><!-- /.container -->
		</div>

		<div class="main-container" id="main-container">
		

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<div class="sidebar" id="sidebar">
					

					<div class="sidebar-shortcuts" id="sidebar-shortcuts">

						<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
							<span class="btn btn-success"></span>

							<span class="btn btn-info"></span>

							<span class="btn btn-warning"></span>

							<span class="btn btn-danger"></span>
						</div>
					</div><!-- #sidebar-shortcuts -->

			<ul class="nav nav-list">
						<li class="active">
							<a href="index.html">
								<i class="icon-dashboard"></i>
								<span class="menu-text"> 用户使用后台 </span>
							</a>
						</li>


						<li>
							<a href="#" class="dropdown-toggle">
								<i class="icon-list"></i>
								<span class="menu-text"> 报修管理 </span>
								<b class="arrow icon-angle-down"></b>
							</a>
                            <ul class="submenu">
								<li>
									<a href="javascript:;" onclick="addFixOrderTopic()">
										<i class="icon-double-angle-right"></i>
										新增报修
									</a>
								</li>
								<li>
									<a href="javascript:;" onclick="fixOrderListTopic()">
										<i class="icon-double-angle-right"></i>
										报修记录
									</a>
								</li>
								<li>
									<a href="javascript:;" onclick="messageListTopic()">
										<i class="icon-double-angle-right"></i>
										信息列表
									</a>
								</li>
							</ul>
							
						</li>
						
						<li>
							<a href="#" class="dropdown-toggle">
								<i class="icon-edit"></i>
								<span class="menu-text"> 我的社区</span>

								<b class="arrow icon-angle-down"></b>
							</a>		
							<ul class="submenu">
								<li>
									<a href="#" onclick="showCommunity()">
										<i class="icon-double-angle-right"></i>
										社区话题
									</a>
								</li>
							</ul>				
						</li>
						
						<li>
							<a href="#" class="dropdown-toggle">
								<i class="icon-edit"></i>
								<span class="menu-text"> 评价管理 </span>

								<b class="arrow icon-angle-down"></b>
							</a>	
							<ul class="submenu">
								<li>
									<a href="${ctx}showFinishedOrder" onclick="">
										<i class="icon-double-angle-right"></i>
										报修评价
									</a>
								</li>
							</ul>							
						</li>
					</ul><!-- /.nav-list -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>

				<div class="main-content">
					<div class="breadcrumbs" id="breadcrumbs">
						<script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home home-icon"></i>
								<a href="${ctx}userPage/index">立修</a>
							</li>
							
							<li class="active">社区话题</li>
						</ul><!-- .breadcrumb -->
					</div>

					<div class="page-content" style="padding:0px;">
						
						<html lang="en">
	<head>
	<style>
		.contain{
			width:80%;
			margin: auto;
		}
		.title{
			font-size: 26px;
			font-weight: bold;
			margin-top: 15px;
		}
		.answer{
			background-color: #f6f6f6;
			overflow:hidden;
		}
		.addAns{
			padding-top:10px;
			font-size: 22px;
			margin-left: 60px;
		}
		.ansInput{
			margin-left: 60px;
			margin-bottom: 20px;
		}
		article{
			margin-top:30px;
			height:150px;
		}
		</style>
		<meta charset="utf-8" />
	</head>

<body>
	<div class="contain">
	<div class="title">${topArticle.title!}</div>
	
	<article class="am-comment"> <!-- 评论容器 -->
  <a href="">
    <img class="am-comment-avatar" alt=""/ src="${ctx}${topArticle.userInfo.imgPath!}"> <!-- 评论者头像 -->
  </a>

  <div class="am-comment-main"> <!-- 评论内容容器 -->
    <header class="am-comment-hd">
      <!--<h3 class="am-comment-title">评论标题</h3>-->
      <div class="am-comment-meta"> <!-- 评论元数据 -->
        <a href="#link-to-user" class="am-comment-author">${topArticle.userInfo.name!}</a> <!-- 评论者 -->
        发表于 <time datetime=""> ${topArticle.date!}</time>
      </div>
    </header>

    <div class="am-comment-bd">${topArticle.content!}</div> <!-- 评论内容 -->
  </div>
</article>

<div class="answer">
	<h2 class="addAns">添加回答</h2>
	<form action ="${ctx}replyArticle" method="post">
		<textarea name="content" cols="" rows="" id="content" class="textarea radius ansInput" placeholder="说点什么..." style="width:90%;padding:6px;"></textarea>
		<input type="hidden" name="accountId" value="${userInfo.accountId?c}">
		<input type="hidden" name="articleId" value="${topArticle.id!}">
		<button  type="submit" style="float:right;margin-right:30px;;margin-bottom:10px;"class="am-btn am-btn-secondary am-radius">提交</button>
	</form>
</div>
 
 
		<script>
		function reply(id){
			$.ajax({
				url:'${ctx}replyArticle',
				method:'post',
				dataType:'json',
				data:{
					title:"",
					content:$('#content').val(),
					articleId:id,
					accountId:$('#accountId').val()
				},
				success:function(data){
					console.log("data"+data);
					if(data.code==0){
						alert("提交成功")
						$('.page-content').load("${ctx}comment/"+id);
						
					}else{
						alert("提交失败")
					}		
				}		
			}); 
		}
		
	
		</script>
 
 
 <#if articles?exists>
<#list articles as art>
 	<article class="am-comment-flip"> <!-- 评论容器 -->
  <a href="">
    <img class="am-comment-avatar" alt=""/ src="${ctx}${art.userInfo.imgPath!}"> <!-- 评论者头像 -->
  </a>

  <div class="am-comment-main"> <!-- 评论内容容器 -->
    <header class="am-comment-hd">
      <!--<h3 class="am-comment-title">评论标题</h3>-->
      <div class="am-comment-meta"> <!-- 评论元数据 -->
        <a href="#link-to-user" class="am-comment-author">${art.userInfo.name!}</a> <!-- 评论者 -->
        发表于 <time datetime=""> ${art.date!}</time>
      </div>
    </header>

    <div class="am-comment-bd">${art.content!}</div> <!-- 评论内容 -->
  </div>
</article>
 </#list>
</#if>
</div>
</body>
</html>		
						
					</div><!-- /.page-content -->
					
				
					
				
				</div>
			</div><!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		<!-- basic scripts -->

		<!--[if !IE]> -->

		<script src="${ctx}static/assets/js/jquery.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='${ctx}static/assets/js/jquery-2.0.3.min.js'>"+"<"+"script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='${ctx}static/assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");
</script>
<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='${ctx}static/assets/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
		</script>
		<script src="${ctx}static/assets/js/bootstrap.min.js"></script>
		<script src="${ctx}static/assets/js/typeahead-bs2.min.js"></script>

		<!-- page specific plugin scripts -->

		<!--[if lte IE 8]>
		  <script src="${ctx}static/assets/js/excanvas.min.js"></script>
		<![endif]-->

		<script src="${ctx}static/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="${ctx}static/assets/js/jquery.ui.touch-punch.min.js"></script>
		<script src="${ctx}static/assets/js/jquery.slimscroll.min.js"></script>
		<script src="${ctx}static/assets/js/jquery.easy-pie-chart.min.js"></script>
		<script src="${ctx}static/assets/js/jquery.sparkline.min.js"></script>
		<script src="${ctx}static/assets/js/flot/jquery.flot.min.js"></script>
		<script src="${ctx}static/assets/js/flot/jquery.flot.pie.min.js"></script>
		<script src="${ctx}static/assets/js/flot/jquery.flot.resize.min.js"></script>

		<!-- ace scripts -->

		<script src="${ctx}static/assets/js/ace-elements.min.js"></script>
		<script src="${ctx}static/assets/js/ace.min.js"></script>

		<script src="${ctx}static/assets/js/jquery.liMarquee.js"></script>

		<!-- inline scripts related to this page -->

		<script src="${ctx}static/js/user/user.js"></script>

</body>
</html>

